<!--登录页面-->
<!--一个页面一个模块,模块要以页面的形式来划分-->
<div class="container col-md-offset-12"  ng-app="loginApp" ng-controller="loginController">
    <div class="col-md-5">
        <div class="page-header">
            <h1 class="text-center">angularJS</h1>
        </div>
    </div>
    <div style="clear: both"></div>
    <div id="message" class="well" ng-show="message">{{message}}</div>
    <!--登录表单-->
    <form ng-submit="postForm()" class="col-md-5">
        <div class="form-group ">
            <label >用户名</label>
            <input type="text" class="form-control" name="username" placeholder="请输入用户名" ng-model="formData.username"/>
            <span class="help-block" ng-show="errorUsername">{{errorUsername}}</span>
        </div>
        <div class="form-group ">
            <label >密&emsp;码</label>
            <input type="password" class="form-control" name="password" placeholder="请输入密码" ng-model="formData.password"/>
             <span class="help-block" ng-show="errorPassword">{{errorPassword}}</span>
        </div>
        <button type="submit" class="btn btn-success btn-block btn-lg">踏上征程</button>
    </form>
</div>